package org.hxyjs.dao;

import org.hxyjs.entity.Festival;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface FestivalDao {
    public List<Festival>  getAllFestivals()  throws Exception;
    public Festival  selectFestivalBySno(String sno)  throws Exception;
    public List<Festival> getFestivalByPage(PageInfo pageInfo) throws Exception;
    //增删改的返回值都是整数
    Integer deleteFestivalByFno(String fno)  throws Exception;
    Integer updateFestivalByFno(Festival festival)  throws Exception;
    Integer addFestivalByFno(Festival festival)  throws Exception;
    Festival getFestivalByFno(String fno)  throws Exception;

}
